class Student{
    String name;
    int age;
    String stuNum;
    public void set(String name, int age, String stuNum){
        this.name = name;
        this.age = age;
        this.stuNum = stuNum;
    }
}

public class Test{
    public static void main(String[] args){
        Student stu = new Student();
        stu.set("zhangsan", 18, "123");
        System.out.println(stu.name +" " + stu.age + " " + stu.stuNum);
    }
}